package com.ruoyi.common.utils;

/**
 * @author Bruce
 */
public class RedisKeyUtils {

    public static final String MAP_USER_LIKE = "MAP_USER_LIKE";

    public static final String MAP_USER_LIKE_COUNT = "MAP_USER_LIKE_COUNT";

    public static String getLikedKey(Long userId, Integer commentId){
        StringBuilder sb = new StringBuilder();
        sb.append(userId).append("::").append(commentId);
        return sb.toString();
    }

    public static String getCommentKey(Integer commentId){
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(commentId);
        return stringBuilder.toString();
    }
}
